home *** CD-ROM | disk | FTP | other *** search
/ Mac Power 1997 December / MACPOWER-1997-12.ISO.7z / MACPOWER-1997-12.ISO / AMUG / PROGRAMMING / Raven 1.2 Examples.sit / Raven 1.2 Examples / Quill / Source / ControlProxy.cpp < prev    next >
Text File  |  1997-08-07  |  2KB  |  58 lines

  1. /*
  2.  *    File:        ControlProxy.cpp
  3.  *    Function:    Proxy for TControl subclasses.
  4.  *    Written by:    Jesse Jones
  5.  *
  6.  *  Copyright ゥ 1997 Jesse Jones. 
  7.  *    For conditions of distribution and use, see copyright notice in ZTypes.h  
  8.  *
  9.  *    Change History (most recent first):
  10.  *
  11.  *         <->     1/22/97    JDJ        Created
  12.  */
  13.  
  14. #include "ControlProxy.h"
  15.  
  16. #include <ZView.h>
  17.  
  18.  
  19. // ===================================================================================
  20. //    class CControlProxy
  21. // ===================================================================================
  22.  
  23. static TReanimatorRegister<CControlProxy> sControlRegistrar("TControl");
  24.  
  25. static TReanimatorRegister<CControlProxy> sControlProxyRegistrar;
  26.  
  27. //---------------------------------------------------------------
  28. //
  29. // CControlProxy::~CControlProxy
  30. //
  31. //---------------------------------------------------------------
  32. CControlProxy::~CControlProxy()
  33. {
  34. }
  35.  
  36.  
  37. //---------------------------------------------------------------
  38. //
  39. // CControlProxy::CControlProxy
  40. //
  41. //---------------------------------------------------------------
  42. CControlProxy::CControlProxy(const string& name, TView* superView, const TRect& frame, const string& mesg) : TControl(name, superView, frame, mesg)
  43. {
  44. }
  45.  
  46.  
  47. //---------------------------------------------------------------
  48. //
  49. // CControlProxy::Create                                [static]
  50. //
  51. //---------------------------------------------------------------
  52. MReanimatable* CControlProxy::Create(MReanimatable* parent)
  53. {
  54.     return new CControlProxy("????", dynamic_cast<TView*>(parent), TRect(0, 0, 75, 20), "????");
  55. }
  56.  
  57.  
  58.